# Maintainer: Umar Getagazov <umar@handlerug.me>
pkgname=haredo
pkgver=1.0.5
pkgrel=0
pkgdesc="Simple, Unix-idiomatic build automator"
url="https://sr.ht/~autumnull/haredo"
arch="x86_64 aarch64 riscv64" # Hare
license="WTFPL"
makedepends="hare scdoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~autumnull/haredo/archive/$pkgver.tar.gz"

build() {
	./bootstrap.sh
}

check() {
	PATH="$builddir/bin:$PATH" haredo test
}

package() {
	PREFIX="$pkgdir"/usr ./bootstrap.sh install
}

sha512sums="
625061a492258a767bfaedffaafc441a71af941a68859b32f5b5890911c60062c3c7cce5cbf623cce8c4295032ff5f88fde01ad4bc24a84f6dc6d268b46e8528  haredo-1.0.5.tar.gz
"
